package com.retired_serviceman_management.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * (SoldierInfo)实体类
 *
 * @author makejava
 * @since 2023-02-26 21:54:23
 */
public class SoldierInfo implements Serializable {
    private static final long serialVersionUID = -76420355328604258L;
    /**
     * 军人编号
     */
    private Integer soldierId;
    /**
     * 军人名字
     */
    private String soldierName;
    /**
     * 军人年龄
     */
    private Integer soldierAge;
    /**
     * 籍贯
     */
    private String soldierOrigin;
    /**
     * 家庭住址
     */
    private String homeLocal;
    /**
     * 服役时间
     */
//    @DateTimeFormat(pattern = "yyyy-MM-dd")
//    @JsonFormat(pattern="yyyy-MM-dd")
    private Date serviceTime;
    /**
     * 退役时间
     */
//    @DateTimeFormat(pattern = "yyyy-MM-dd")
//    @JsonFormat(pattern="yyyy-MM-dd")
    private Date decommissioningTime;
    /**
     * 工作状态
     */
    private String psStatus;
    /**
     * 手机号
     */
    private String mobile;
    /**
     * 账号密码
     */
    private String password;

    /**
     * 有效状态
     * @return
     */
     private String HR_STATUS;

    @Override
    public String toString() {
        return "SoldierInfo{" +
                "soldierId=" + soldierId +
                ", soldierName='" + soldierName + '\'' +
                ", soldierAge=" + soldierAge +
                ", soldierOrigin='" + soldierOrigin + '\'' +
                ", homeLocal='" + homeLocal + '\'' +
                ", serviceTime=" + serviceTime +
                ", decommissioningTime=" + decommissioningTime +
                ", psStatus='" + psStatus + '\'' +
                ", mobile='" + mobile + '\'' +
                ", password='" + password + '\'' +
                ", HR_STATUS='" + HR_STATUS + '\'' +
                '}';
    }

    public String getHR_STATUS() {
        return HR_STATUS;
    }

    public void setHR_STATUS(String HR_STATUS) {
        this.HR_STATUS = HR_STATUS;
    }

    public Integer getSoldierId() {
        return soldierId;
    }

    public void setSoldierId(Integer soldierId) {
        this.soldierId = soldierId;
    }

    public String getSoldierName() {
        return soldierName;
    }

    public void setSoldierName(String soldierName) {
        this.soldierName = soldierName;
    }

    public Integer getSoldierAge() {
        return soldierAge;
    }

    public void setSoldierAge(Integer soldierAge) {
        this.soldierAge = soldierAge;
    }

    public String getSoldierOrigin() {
        return soldierOrigin;
    }

    public void setSoldierOrigin(String soldierOrigin) {
        this.soldierOrigin = soldierOrigin;
    }

    public String getHomeLocal() {
        return homeLocal;
    }

    public void setHomeLocal(String homeLocal) {
        this.homeLocal = homeLocal;
    }

    public Date getServiceTime() {
        return serviceTime;
    }

    public void setServiceTime(Date serviceTime) {
        this.serviceTime = serviceTime;
    }

    public Date getDecommissioningTime() {
        return decommissioningTime;
    }

    public void setDecommissioningTime(Date decommissioningTime) {
        this.decommissioningTime = decommissioningTime;
    }

    public String getPsStatus() {
        return psStatus;
    }

    public void setPsStatus(String psStatus) {
        this.psStatus = psStatus;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public SoldierInfo() {
    }
}

